package com.eshop.modules.activity.param;

import javax.validation.constraints.NotBlank;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

public class UserExtParam implements Serializable
{
    @ApiModelProperty("提现支付宝用户名")
    private String alipayCode;
    @NotBlank(message = "体现类型不能为空")
    @ApiModelProperty("提现类型 weixin alipay")
    private String extractType;
    @NotBlank(message = "金额不能为空")
    @ApiModelProperty("提现金额")
    private String money;
    @ApiModelProperty("微信号")
    private String weixin;
    @ApiModelProperty("支付宝账号")
    private String name;
    
    public String getAlipayCode() {
        return this.alipayCode;
    }
    
    public String getExtractType() {
        return this.extractType;
    }
    
    public String getMoney() {
        return this.money;
    }
    
    public String getWeixin() {
        return this.weixin;
    }
    
    public String getName() {
        return this.name;
    }
    
    public void setAlipayCode(final String alipayCode) {
        this.alipayCode = alipayCode;
    }
    
    public void setExtractType(final String extractType) {
        this.extractType = extractType;
    }
    
    public void setMoney(final String money) {
        this.money = money;
    }
    
    public void setWeixin(final String weixin) {
        this.weixin = weixin;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserExtParam)) {
            return false;
        }
        final UserExtParam other = (UserExtParam)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$alipayCode = this.getAlipayCode();
        final Object other$alipayCode = other.getAlipayCode();
        Label_0065: {
            if (this$alipayCode == null) {
                if (other$alipayCode == null) {
                    break Label_0065;
                }
            }
            else if (this$alipayCode.equals(other$alipayCode)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$extractType = this.getExtractType();
        final Object other$extractType = other.getExtractType();
        Label_0102: {
            if (this$extractType == null) {
                if (other$extractType == null) {
                    break Label_0102;
                }
            }
            else if (this$extractType.equals(other$extractType)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$money = this.getMoney();
        final Object other$money = other.getMoney();
        Label_0139: {
            if (this$money == null) {
                if (other$money == null) {
                    break Label_0139;
                }
            }
            else if (this$money.equals(other$money)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$weixin = this.getWeixin();
        final Object other$weixin = other.getWeixin();
        Label_0176: {
            if (this$weixin == null) {
                if (other$weixin == null) {
                    break Label_0176;
                }
            }
            else if (this$weixin.equals(other$weixin)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null) {
            if (other$name == null) {
                return true;
            }
        }
        else if (this$name.equals(other$name)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof UserExtParam;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $alipayCode = this.getAlipayCode();
        result = result * 59 + (($alipayCode == null) ? 43 : $alipayCode.hashCode());
        final Object $extractType = this.getExtractType();
        result = result * 59 + (($extractType == null) ? 43 : $extractType.hashCode());
        final Object $money = this.getMoney();
        result = result * 59 + (($money == null) ? 43 : $money.hashCode());
        final Object $weixin = this.getWeixin();
        result = result * 59 + (($weixin == null) ? 43 : $weixin.hashCode());
        final Object $name = this.getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "UserExtParam(alipayCode=" + this.getAlipayCode() + ", extractType=" + this.getExtractType() + ", money=" + this.getMoney() + ", weixin=" + this.getWeixin() + ", name=" + this.getName() + ")";
    }
}
